<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=8" />
		<?php include_http_metas() ?>
		<?php include_metas() ?>
	    <?php include_stylesheets() ?>
        <?php include_javascripts() ?>
        
        
    <title>GiftPoint Backend</title>
	</head>
	<body id="<?php echo $sf_request->getParameter('module').'_'.$sf_request->getParameter('action') ?>" style="font: 13px/1.231 arial,helvetica,clean,sans-serif;">
		<div id="container">
			<div id="header">
				<div class="div1">
					<div class="div2" style="font-size: 19px; font-weight: bold">GiftPoint Backend</div>
					<div class="div3" id="time">
						<script type="text/javascript">
	                    function Timer()
	                    {
	                        var days = new Array(
	                            "Sunday", "Monday", "Tuesday",
	                            "Wednesday", "Thursday", "Friday", "Saturday");
	                        var months = new Array(
	                            "January", "February", "March", 
	                            "April", "May", "June", "July", "August", "September", 
	                            "October", "November", "December");
	                        var dt = new Date();
	                        var str = '';
	                        str += days[dt.getDay()] + ", ";
	                        if (dt.getDate() < 10)
	                        {
	                            str += '0';
	                        }
	                        str += dt.getDate() + " " + months[dt.getMonth()] + " " + dt.getFullYear() + " ";
	                        if (dt.getHours() < 10)
	                        {
	                            str += '0';
	                        }
	                        str += dt.getHours() + ":";
	                        if (dt.getMinutes() < 10)
	                        {
	                            str += '0';
	                        }
	                        str += dt.getMinutes() + ":";
	                        if (dt.getSeconds() < 10)
	                        {
	                            str += '0';
	                        }
	                        str += dt.getSeconds();
	                        document.getElementById('time').innerHTML = str;
	                        setTimeout("Timer()", 1000);
	                    }
	                    Timer();
	                	</script>
	                	
	                	
                	</div>
                	<?php if ($sf_user->isAuthenticated()){ ?>
	                	<div class="div4">
	                		<img src="<?php echo image_path('lock.png')?>" alt="" style="position: relative; top: 3px;" />&nbsp;
	                		<?php echo __('You are logged in as')?>
	                		<span>
	                		<?php echo $sf_user->getUserName() ?>
	                		</span>
	                	</div>
	                	<?php }?>
				</div>
				<div id="menu">
				<?php if ($sf_user->isAuthenticated()): ?>
				    <?php include_partial('default/backendNavigation') ?>	
				<?php endif;?>
				</div>
				<div id="content">
				<?php echo $sf_content ?>
				</div>
				
				
			</div>
		</div>
		
	</body>
</html>